<?php

namespace App\Models\Users;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Users extends Model
{
    use HasFactory;
    protected $table = 'users';
    protected $guarded = [];

    public function group (){
        return $this->hasOne(Group::class,'id','group');
    }

    public function grade (){
        return $this->hasOne(Grade::class,'id','grade');
    }

    public function source (){
        return $this->hasOne(Source::class,'id','type');
    }
}
